package com.hui.java.Synchronized;

/**
 * TODO: 可重入粒度测试：调用父类的方法
 *
 * @author chenth
 * @create 2019-09-16 20:09
 **/
public class Synchronized可重入3 {

    public synchronized void doSomething() {
        System.out.println("我是父类");
    }
}
    class childClass extends Synchronized可重入3{
        public synchronized void doSomething(){
            System.out.println("我是子类");
            super.doSomething();
        }

        public static void main(String[] args) {
            childClass childClass = new childClass();
            childClass.doSomething();
        }
    }

